var main = function() {
	$('#submit').fadeTo(0, 0.25).wrap('<span class="lengthWrap" title="Your username or password is not long enough"></span>');
	$("#login").keyup(function() {
		var passLength = $('#passwordInput').val().length;
		var idLength = $('#idInput').val().length;
		if (passLength >= 8) {
			if (idLength == 5) {
				$('#submit').fadeTo(250, 1);
			} else {
				$('#submit').fadeTo(0, 0.25).wrap('<span class="lengthWrap" title="Your username or password is not long enough"></span>');
			}
		} else {
			$('#submit').fadeTo(0, 0.25).wrap('<span class="lengthWrap" title="Your username or password is not long enough"></span>');
		}
	});
};


$(document).ready(main);